XMLElement.SetAttributeNode Method

Sets an attribute node. Optionally returns a reference to a node as an XMLAttribute that had the same name and was replaced.

Syntax

XMLElement.SetAttributeNode AttributeNode, [ns]


Parameters

AttributeNode

XMLAttribute

ns (Optional)

Boolean


The optional parameter ns determines whether to use and declare any namespace data found in the passed XMLAttribute.